<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">
	    主要论文专著目录
</div>
<table  id="tabRepresentPaper" cellpadding="0" class="t_css" style="table-layout: fixed; word-break: break-all; word-wrap: break-word" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<col width="4%" />
			<col width="10%" />
			<col width="7%" />
			<col width="7%" />
			<col width="7%" />
			<col width="7%" />
			<col width="9%" />
			<col width="7%" />
			<col width="7%" />
			<col width="7%" />
			<col width="7%" />
			<col width="7%" />
			<col width="5%" />
			<col width="5%" />
			<thead >
					<tr style="border:1px solid #B7D1E6">
					<th class="TblHead" align="center" >序号</th>
					<th class="TblHead" align="center" >论文专著名称</th>
					<th class="TblHead" align="center" >刊名</th>
					<th class="TblHead" align="center" >作者</th>
					<th class="TblHead" align="center" >影响因子</th>
					<th class="TblHead" align="center" >年卷页码（xx年xx卷xx页）</th> 
					<th class="TblHead" align="center" >发表时间</th>
					<th class="TblHead" align="center" >通讯<br/>作者</th>
					<th class="TblHead" align="center" >第一<br/>作者</th> 
					<th class="TblHead" align="center" >国内<br/>作者</th> 
					<th class="TblHead" align="center" >SCI他引次数</th> 
					<th class="TblHead" align="center" >他引总次数</th> 
					<th class="TblHead" align="center" >知识产权是<br/>否归国内所有</th> 
					<th class="TblHead" align="center" >相似论文专<br/>著名称情况</th>
					</tr>
			</thead>
			<tbody id="tab">
				<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/paper/list" var="list">
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr>
						<td align="center">
							<span name="award_state/list[${flag}${index}]@seq_no" ><x:out select="$list/@seq_no"/></span> 
						</td>
						<td align="left" >
							<span name="paper/list[${flag}${index}]/paper_name"><x:out select="$list/paper_name" /></span>
						</td>
						<td align="left" >
							<x:out select="$list/paper" />
						</td>
						<td align="left" >
							<security:authorize ifNotGranted="A_AUTH_PSZJ">
								<x:out select="$list/paper_author" />
							</security:authorize>
							<security:authorize ifAnyGranted="A_AUTH_PSZJ">
							******
							</security:authorize>
						</td>
						<td align="center" >
							<x:out select="$list/affect_factor" />
						</td>
						<td align="left" >
							<x:out select="$list/paper_no" />
						</td>
						<td align="center" >
							<x:out select="$list/publish_date"/>
						</td>		
						<td align="center" >
							<security:authorize ifNotGranted="A_AUTH_PSZJ">
								<x:out select="$list/contact_author" />
							</security:authorize>
							<security:authorize ifAnyGranted="A_AUTH_PSZJ">
							******
							</security:authorize>
						</td>		
						<td align="center" >
							<security:authorize ifNotGranted="A_AUTH_PSZJ">
								<x:out select="$list/first_author" />
							</security:authorize>
							<security:authorize ifAnyGranted="A_AUTH_PSZJ">
							******
							</security:authorize>
						</td>		
						<td align="left" >
							<security:authorize ifNotGranted="A_AUTH_PSZJ">
								<x:out select="$list/domestic_author" />
							</security:authorize>
							<security:authorize ifAnyGranted="A_AUTH_PSZJ">
							******
							</security:authorize>
						</td>		
						<td align="center" >
							<x:out select="$list/sci_no" />
						</td>
						<td align="center" >
							<x:out select="$list/total_no" />
						</td>	
						<td align="center" >
							<x:out select="$list/yesorno_name" />
						</td>	
						<td align="center">
							<input type="hidden" name="paper/list[${flag}${index}]/similarity"   maxlength="20" label="相似知识产权情况"/>
							<security:authorize ifNotGranted="A_AUTH_PSZJ">
							<a href="###" class="yase" id="similarity_paper_${flag}${index}" onclick="showSimilarityInfo(this,2);"></a>
							</security:authorize>
							<security:authorize ifAnyGranted="A_AUTH_PSZJ">
							<a></a>
							</security:authorize>
						</td>	
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					
			</tbody>
	</table>
	<br>
	
	
	
	
	
<div class="t_bar">补充说明</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="introduction" cellspacing="1" style="table-layout:fixed;">
	<col width="20%;"/>
	<col width="25%;"/>
	<col width="20%;"/>
	<col width="20%;"/>
	<col width="25%;"/>
	<tr class="li_2">
		<td  colspan="5" >
			<x:out select="$xmlData/data/proposal/add_introduction_hidden" escapeXml="false"/>
	      
		</td>
	</tr>
</table>
	
	
	
	
	
	
	
<%-- <div class="t_bar">
	   2. 主要论文专著目录
</div>
	<table  id="tabPaper" cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<col width="5%" />
			<col width="15%" />
			<col width="12%" />
			<col width="12%" />
			<col width="12%" />
			<col width="12%" />
			<col width="12%" />
			<col width="12%" />
			<col width="12%" />
			
			<thead >
				<tr style="border:1px solid #B7D1E6">
					<th class="TblHead" align="center" >序号</th>
					<th class="TblHead" align="center" >论文专著名称</th>
					<th class="TblHead" align="center" >刊名</th>
					<th class="TblHead" align="center" >作者</th>
					<th class="TblHead" align="center" >影响因子</th>
					<th class="TblHead" align="center" >年卷页码（xx年xx卷xx页）</th> 
					<th class="TblHead" align="center" >SCI他引次数</th> 
					<th class="TblHead" align="center" >他引总次数</th> 
					<th class="TblHead" align="center" >知识产权归属</th> 
				</tr>
			</thead>
			<tbody id="tab">
				<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/mainpaper/list" var="list">
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr>
						<td align="center">
							<span name="award_state/list[${flag}${index}]@seq_no" ><x:out select="$list/@seq_no"/></span> 
						</td>
						<td align="left" >
							<x:out select="$list/paper_name" />
						</td>
						<td align="left" >
							<x:out select="$list/paper" />
						</td>
						<td align="left" >
							<security:authorize ifNotGranted="A_AUTH_PSZJ">
								<x:out select="$list/paper_author" />
							</security:authorize>
							<security:authorize ifAnyGranted="A_AUTH_PSZJ">
							******
							</security:authorize>
						</td>
						<td align="center" >
							<x:out select="$list/affect_factor" />
						</td>
						<td align="left" >
							<x:out select="$list/paper_no" />
						</td>
						<td align="center" >
							<x:out select="$list/sci_no" />
						</td>
						<td align="center" >
							<x:out select="$list/total_no" />
						</td>	
						<td align="center" >
							<x:out select="$list/domestic_name" />
						</td>	
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					<tr>
						<td align="center" colspan="6">合计</td>	
						<td align="center" >&nbsp;<x:out select="$xmlData/data/mainpaper/sci2_total" /></td>	
						<td align="center" >&nbsp;<x:out select="$xmlData/data/mainpaper/others2_total" /></td>
						<td></td>
					</tr>
			</tbody>
	</table> --%>
	
	
<script type="text/javascript">
$(function(){
	$("#tabRepresentPaper").find("tr:gt(0)").each(function(){
		var paper_name=$(this).find("span[name$='paper_name']").text();
		var obj=$(this).find("input[name$='similarity']");
		var obj1=$(this).find("a");
		if(paper_name!=""){
			$.ajax({
    		    url: "${ctx}/proposal/findSimilarityNum",
    		    data:{
    		    	'sourceName':paper_name,
    		    	'type':'2',
    		    	'posCode':'${posCode}'
    		    },
    		    type: "POST",
    		    dataType: 'text',
    		    timeout: 10000,
    		    async:false,
    		    error: function(){
    		        alert("查询相似知识产权情况失败");
    		    },
    		    success: function(data){
    		    	obj.val(data);
    		    	obj1.text(data);
    		    }
    		});
		}
	});
	findSimilarity();
});
function findSimilarity(){
	$("#tblCooperation2").find("tr:gt(0)").each(function(){
		var knowledgeName=$(this).find("span[name$='knowledge_name']").text();
		var obj=$(this).find("input[name$='similarity']");
		var obj1=$(this).find("a");
		if(knowledgeName!=""){
			$.ajax({
    		    url: "${ctx}/proposal/findSimilarityNum",
    		    data:{
    		    	'sourceName':knowledgeName,
    		    	'type':'1',
    		    	'posCode':'${posCode}'
    		    },
    		    type: "POST",
    		    dataType: 'text',
    		    timeout: 10000,
    		    async:false,
    		    error: function(){
    		        alert("查询相似知识产权情况失败");
    		    },
    		    success: function(data){
    		    	obj.val(data);
    		    	obj1.text(data);
    		    }
    		});
		}
	});
}
</script>